GetCallStack

Returns the complete stack of function, subroutine, script, and Try calls up to the current script line. Use to trace the calls completed before an error occurred when debugging scripts.

Syntax

GetCallStack()

Return value

Value Description
Value Current call stack. Each call stack line is returned in three parts, separated with tabs: statement name and arguments, full path to the script file, and line number.

Example

stack = GetCallStack()

PrintLn("Stack info: " + stack)